using UnityEngine;
using UnityEngine.UI;
using QFramework;

namespace QFramework.Example
{
	public class UI_InputSettingsPanelData : UIPanelData
	{
	}
	public partial class UI_InputSettingsPanel : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as UI_InputSettingsPanelData ?? new UI_InputSettingsPanelData();
			// please add init code here

			BtnClick();

        }

        public override void BtnClick()
        {
            base.BtnClick();

			SettingBtn.onClick.AddListener(() =>
			{

			});


			InputMessageBtn.onClick.AddListener(() => 
			{
				UIKit.OpenPanel<UI_GamePlayInputMessagePanel>();
			});

			QuitBtn.onClick.AddListener(() =>
			{
				Time.timeScale = 1f;
				this.Hide();
			});

        }

        protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
		}
		
		protected override void OnClose()
		{
		}
	}
}
